// import { reactive } from 'vue'


import { defineStore } from 'pinia'
// export const store = reactive({
//   count: 0
// })

// export const store = reactive({
//     count: 0,
//     increment() {
//       this.count++
//     }
//   })

export const useCounterStore = defineStore('counter', {
    state: () => ({ count: 0, name: 'Eduardo' }),
    getters: {
      doubleCount: (state) => state.count * 2,
    },
    actions: {
      increment() {
        this.count++
      },
    },
  })